<template>
	<el-config-provider :locale="zhCn">
		<router-view />
	</el-config-provider>
</template>

<script lang="ts" setup>
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import { onMounted } from "vue";
import { service, storage } from "/@/cool";
import { useBase } from "/$/base";
import { getUrlSearch } from "/@/utils/tools";
onMounted(async ()=>{
	const {app} = useBase();
	//是否全屏
	const fullscreen = eval(getUrlSearch("fullscreen") || 'false');
	if(fullscreen){
		storage.set("fullscreen",fullscreen);
		app.topbar.show = false;
		app.sidebar.show = false;
	}else {
		storage.remove("fullscreen");
		app.topbar.show = true;
		app.sidebar.show = true;
	}
})
</script>
<style lang="scss">
@import '/public/style/index';
</style>
